import type { FormSchemaGetter } from '#/adapter/form';

export const drawerSchema: FormSchemaGetter = () => [
  {
    component: 'Input',
    fieldName: 'deviceName',
    label: '设备名称',
    rules: 'required',
  },
  {
    component: 'InputNumber',
    fieldName: 'deviceSn',
    label: '设备序列号',
    rules: 'required',
  },
  {
    component: 'Select',
    fieldName: 'productId',
    label: '所属产品',
    rules: 'required',
  },
  {
    component: 'Textarea',
    fieldName: 'deviceDesc',
    label: '设备描述',
  },
];
